<%@ page language="java" pageEncoding="utf8"%>
<jsp:include page="/head.jsp" />
<script type="text/javascript">
	dojo.require("dijit.form.ValidationTextBox");
	
	var status = <%=request.getParameter("status")%>;
	
	function submitForm() {
	  	//showErrorMessage('用户名或密码错误');
		return true;
  	}
   	
	function showErrorMessage(m) {
		if(dojo.isIE == 6){
			dojo.byId('errorDiv').style.visibility = 'visible';
		}else{
			dojo.byId('errorDiv').style.display = 'block';			
		}
        dojo.byId("error").innerHTML=m;
		dojo.byId("error").focus();
   	}
   
    dojo.addOnLoad(function(){
    	if(status == 0){
			showErrorMessage('该邮箱已被注册');
		}
    });
</script>

<div class="maincontent">
	<div class="HackBox"></div>
	<div id="breadcrumb">
		&nbsp;
		<a href="index.jsp">主页</a>&gt;新用户注册
	</div>

	<div class="maincontentin">
		<div class="register_div">
			<span class="register_bar"> <span class="left"></span> <span
				class="register_icon"> 新用户注册 </span> </span>
			<form id="registForm" name="registForm" action="regist.do"  method="post">
				<table class="register_table">
					<tbody>
					<tr>
					<tr>
						<td colspan="3">
							<div id='errorDiv' class="error-msg" style="display: none">
								<span class="error-msg-icon">Error icon</span>
								<span tabindex="0" id='error'></span>
								<span class="error-msg-r"></span>
								<div class="clear"></div>
							</div>
						</td>
					</tr>
					<tr>
							<td width="25%" class="registLabel">
								邮箱地址：
							</td>
							<td width="40%">
								<input name="email" id="email" invalidMessage="请输入邮箱地址"
									required="true" regExp="\s*[\w\.]+@[\w\.]+\s*"
									dojoType="dijit.form.ValidationTextBox" />
							</td>
							<td width="35%" rowspan="2">
								请填写有效的Emai地址作为下次登录的用户名,同时我们也会给这个地址发送帐户信息、订单通知等
							</td>
						</tr>
						<tr>
							<td  class="registLabel">
								手机号码：
							</td>
							<td width="40%" >
								<input name="phone" id="phone"/>
							</td>
						</tr>
						
						<tr>
							<td colspan="3">
								<hr class="dotline"></hr>
							</td>
						</tr>
						
						<tr>
							<td  class="registLabel">
								密码：
							</td>
							<td>
								<input name="password" type="password" id="password"
									required="true" invalidMessage="密码不能为空"
									dojoType="dijit.form.ValidationTextBox" />
							</td>
							<td rowspan="2">
							密码由6-16个字符组成，请使用英文字母加数字或符号的组合密码，不能单独使用英文字母、数字或符号作为您的密码。
							</td>
						</tr>
						<tr>
							<td class="registLabel">
								再次确认密码：
							</td>
							<td >
								<input name="password" type="password" id="passwordConfirm"
									required="true" invalidMessage="密码不能为空"
									dojoType="dijit.form.ValidationTextBox" />
							</td>
						</tr>
						<tr>
							<td colspan="3">
								<hr class="dotline"></hr>
							</td>
						</tr>
						<tr>
							<td class="registLabel">
								用户名：
							</td>
							<td >
								<input dojoType="dijit.form.ValidationTextBox" id="userName"
									name='userName' required="true" invalidMessage="请输入用户名" />
							</td>
							<td>
								您希望我们怎么称呼您
							</td>
						</tr>
						<tr>
							<td class="registLabel">
								身份证：
							</td>
							<td>
								<input dojoType="dijit.form.ValidationTextBox" id="idCard"
									name='idCard' required="true" invalidMessage="请输入身份证" />
							</td>
							<td >
								方便您取票
							</td>
						</tr>
						
	
					<tr>
						<td colspan="3">
							<div class="buttonbar"> 
								<div class="btngroup">
									<span class="blue-btn"> <span class="inputbtn"> <span
											class="l"></span> <input type="submit" value='提  交'></input>
									</span> </span>
									<span class="blue-btn"> <span class="inputbtn"> <span
											class="l"></span> <input type="button" value='清  空'></input>
									</span> </span>
								</div>
							</div>
						</td>
					</tr>
					</tbody>
				</table>
			</form>

		</div>


	</div>
</div>


<jsp:include page="footer.jsp" />